from appium.webdriver.common.mobileby import MobileBy

from ui_framework_02.page.basepage import BasePage
from ui_framework_02.page.market_page import MarketPage


class MainPage(BasePage):

    def goto_market_package(self):
        # self.find_and_click(MobileBy.XPATH, '//*[@resource-id="com.xueqiu.android:id/post_status"]')
        # self.find_and_click(MobileBy.XPATH, "//*[@text='行情']")
        # self.find_and_click(MobileBy.XPATH, "//*[@resource-id='com.xueqiu.android:id/action_search']")
        # self.find_and_send(MobileBy.XPATH, "//*[@resource-id='com.xueqiu.android:id/search_input_text']", "alibaba")
        self.parse("../datas/main_page.yaml", "goto_market")
        return MarketPage(self.driver)
